package com.wfh.mianshiji.ws.handler;

import com.wfh.mianshiji.ws.model.Message;
import com.wfh.mianshiji.ws.model.enums.MessageTypeEnum;
import jakarta.websocket.Session;
import org.springframework.web.socket.WebSocketSession;

/**
 * @Title: Basehandler
 * @Author wangfenghuan
 * @Package com.wfh.mianshiji.ws.handler
 * @Date 2025/10/31 14:40
 * @description:
 */
public interface BaseHandler {

    /**
     * 获取消息类型
     * @return
     */
    MessageTypeEnum getMessageType();

    /**
     * 处理消息
     * @param message
     * @param session
     */
    void handle(Message message, WebSocketSession session);
}
